<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/24 0024
 * Time: 下午 4:26
 */

namespace backend\assets;


use common\components\GlobalUrlComponent;
use yii\web\AssetBundle;

class DesignerAsset extends AssetBundle
{
    public $baseUrl = '';

    public $css = [
        'plugins/designer/diagram.css',
        'plugins/designer/style.css',
    ];
    public $js = [
        'plugins/designer/API.js',
        'plugins/designer/dialog.js',
        'plugins/designer/schema.js',
        'plugins/designer/basic.js',
        'plugins/designer/designer.core.js',
        'plugins/designer/designer.methods.js',
        'plugins/designer/designer.ui.js',
        'plugins/designer/designer.events.js',
        'plugins/designer/collaboration.js',
        'plugins/designer/style.js',
        'plugins/designer/html2canvas.js',
    ];
    public $depends = [
        AppAsset::class
    ];

    public function __construct(array $config = [])
    {
        $this->baseUrl = GlobalUrlComponent::buildStaticUrl('/');

        parent::__construct($config);
    }
}